﻿@{
    Layout = null;
}
@model System.Collections.IEnumerable
<!DOCTYPE html>
@Html.Partial("LoadPanelPartial")
<html> 
<head>
    <title>TaxAuditFormShowDate</title>
       @if (false)
    {
        <script src="../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/FloatDiv.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>
    
    @Html.DevExpress().GetStyleSheets(
                new StyleSheet { ExtensionType = ExtensionType.GridView, Theme = DevExpressHelper.Theme }

    )
    @Html.DevExpress().GetScripts(
                    new Script { ExtensionType = ExtensionType.ListBox }
    )
    <script>
        function OnBeginCallback(s, e) {
            e.customArgs["command"] = e.command;
        }

        function codeDel(codeNo) {
            if (confirm("确定删除？")) {
                $.ajax({
                    type: 'POST',
                    url: rootPath + '/AllowancePay/Del',
                    data: { FId: codeNo },
                    success: function (result) {
                        if (result == "ok") {
                            alert("删除成功");
                           // var s = 'Session["FApplicationFormID"]';
                            //parent.search(s);
                            var id = '@Session["FApplicationFormID"]';
                            parent.codeEdits(id);
                            gvEditing.Refresh();
                            //window.location.href = rootPath + "/AllowancePay/AllowancePayEdit?FApplicationFormID=" +s;
                        } else if (result == "error") {
                            alert("删除失败");
                        } else {
                            alert("参数错误");
                        }
                    }
                });
            }

        }
    </script>
</head>
<body>
    <div>
 
            @Html.Partial("FormerYearSpecificAdjustListPartial", Model)
     
    </div>

</body>
</html>
